package top.amot.forceview.drawitem

import android.content.Context
import android.graphics.Canvas
import android.graphics.PointF
import top.amot.forceview.theme.I_Theme
import top.amot.forceview.model.AbstractNode

class DefaultNodeDrawItem(context: Context) : AbstractDrawItem<AbstractNode>(context) {

    override fun isType(node: AbstractNode): Boolean {
        return true
    }

    override fun measure(node: AbstractNode) {
    }

    override fun drawItem(canvas: Canvas, theme: I_Theme, node: AbstractNode, isSelectNode: Boolean) {

    }

    override fun calcLinkPoint(node: AbstractNode, position: LinkPointPosition): PointF {
       return PointF(node.x, node.y)
    }

    override fun containPoint(node: AbstractNode, x: Float, y: Float): Boolean {
       return false
    }

}